package top.wilsonlv.jaguar.cloud.websocket.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author lvws
 * @since 2022/1/17
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "jaguar.websocket")
public class WebsocketProperties {

    /**
     * 心跳频率（秒）
     */
    private Integer heartBeatRate = 60;

    /**
     * 过期时间（秒）
     */
    private Integer expireTime = 30;

    /**
     * 过期前检查时间（秒）
     */
    private Integer expireCheckTime = 15;

}
